﻿<%@ Page Language="C#" MasterPageFile="~/adm-Master.Master" AutoEventWireup="true" CodeBehind="Manufacturer.aspx.cs" Inherits="BookStore.admin.Manufacturer" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div class="PageName">Manufacturer Manager</div>
    
<asp:Panel ID="pnView" runat="server">

<div class="Control">
    <ul>
        <li>
            <asp:LinkButton CssClass="vadd" ID="lbtAddT" runat="server" 
                onclick="lbtAddT_Click">Add new</asp:LinkButton>
        </li> 
        <li> 
            <asp:LinkButton CssClass="vrefresh" ID="lbtRefreshT" runat="server" OnClick="lbtRefreshB_Click">Refesh</asp:LinkButton></li> 
        <li> 
            <a class="vback" href="javascript:void(0);" onclick="window.history.go(-1);">Back</a> 
        </li>
    </ul>
</div>
    <asp:GridView ID="gvMamu" runat="server" AllowPaging="True" 
        AutoGenerateColumns="False" BorderWidth="1px" Width="100%" 
        onrowdeleting="gvMamu_RowDeleting" 
        onselectedindexchanging="gvMamu_SelectedIndexChanging" 
        onpageindexchanging="gvMamu_PageIndexChanging">
        <Columns>
            <asp:BoundField DataField="manufacturerID" HeaderText="manufacturerID" />
            <asp:BoundField DataField="manufacturerName" HeaderText="manufacturerName" />
            <asp:BoundField DataField="address" HeaderText="address" />
            <asp:BoundField DataField="email" HeaderText="email" />
            <asp:BoundField DataField="fax" HeaderText="fax" />
            <asp:BoundField DataField="description" HeaderText="description" />
            <asp:CommandField ShowDeleteButton="True" />
            <asp:CommandField ShowSelectButton="True" />
        </Columns>
    </asp:GridView>
<div class="Control">
    <ul>
        <li>
            <asp:LinkButton CssClass="vadd" ID="lbtAddB" runat="server" OnClick="lbtAddT_Click">Add new</asp:LinkButton>
        </li> 
        <li>
            <asp:LinkButton CssClass="vrefresh" ID="lbtRefreshB" runat="server" 
                onclick="lbtRefreshB_Click">Refesh</asp:LinkButton></li> 
        <li> 
            <a class="vback" href="javascript:void(0);" onclick="window.history.go(-1);">Back</a> 
        </li>
    </ul>
</div>
</asp:Panel>
<asp:Panel ID="pnUpdate" runat="server" Visible="False">
<table class="TableUpdate" border="1">
    <tr> 
        <td class="Control" colspan="2">
            <ul>
                <li>
                    <asp:LinkButton CssClass="uupdate" ID="lbtUpdateT" runat="server" 
                        onclick="lbtUpdateT_Click">Save</asp:LinkButton>
                </li> 
                <li> 
                    <asp:LinkButton CssClass="uback" ID="lbtBackT" runat="server" 
                        CausesValidation="False">Back</asp:LinkButton>
                </li> 
            </ul>
        </td> 
    </tr>
    <tr> 
    <th> 
    </th>
    <td>
       <asp:TextBox ID="txtmanufacturerID" runat="server" CssClass="Text" 
            Visible="False"></asp:TextBox>
    </td>
     </tr>
    <tr> 
       <th> 
            <asp:Label ID="lblmanufacturerName" runat="server" Text="manufacturerName :"></asp:Label>
       </th>
       <td>
            <asp:TextBox ID="txtmanufacturerName" runat="server" CssClass="Text"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                ControlToValidate="txtmanufacturerName" ErrorMessage="not Blank"></asp:RequiredFieldValidator>
       </td>
     </tr>
     <tr> 
        <th> 
            <asp:Label ID="lbladdress" runat="server" Text="address :"></asp:Label>
        </th>
        <td>
            <asp:TextBox ID="txtaddress" runat="server" CssClass="Text"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                ControlToValidate="txtaddress" ErrorMessage="not Blank"></asp:RequiredFieldValidator>
        </td>
     </tr>
     <tr> 
        <th> 
            <asp:Label ID="lblemail" runat="server" Text="email :"></asp:Label>
        </th>
        <td>
            
            <asp:TextBox ID="txtemail" runat="server"></asp:TextBox>
            
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                ControlToValidate="txtemail" ErrorMessage="not Blank"></asp:RequiredFieldValidator>
             <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server"

            ErrorMessage="email not valid"

            ControlToValidate="txtemail"

            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
            
        </td>
      </tr>
      <tr> 
         <th> 
             <asp:Label ID="lblfax" runat="server" Text="fax :"></asp:Label>
         </th>
         <td>
             <asp:TextBox ID="txtfax" runat="server" CssClass="Text"></asp:TextBox>
             <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                 ControlToValidate="txtfax" ErrorMessage="not Blank"></asp:RequiredFieldValidator>
         </td>
      </tr>
      <tr> 
         <th> 
             <asp:Label ID="lbldescription" runat="server" Text="description :"></asp:Label>
        </th>
        <td>
            <asp:TextBox ID="txtdescription" runat="server" CssClass="Text" Height="111px" 
                TextMode="MultiLine" Width="471px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                ControlToValidate="txtdescription" ErrorMessage="not Blank"></asp:RequiredFieldValidator>
        </td>
     </tr>
     <tr> 
         <td class="Control" colspan="2">
             <ul>
                 <li>
                 <asp:LinkButton CssClass="uupdate" ID="LinkButton1" runat="server" 
                         onclick="lbtUpdateT_Click">Save</asp:LinkButton></li> <li> 
                 <asp:LinkButton CssClass="uback" ID="LinkButton2" runat="server" CausesValidation="False">Back</asp:LinkButton>
                 </li> 
             </ul>
         </td> 
     </tr>
</table>
</asp:Panel>
</asp:Content>
